package com.yuerlive.rainbow.common;

import com.google.protobuf.Api;
import com.yuerlive.rainbow.API;
import com.yuerlive.rainbow.BuildConfig;

/**
 * Created by xiaoyi on 2017/6/6.
 */

public class AppConfig {
    private AppConfig() {
    }

    /**
     * 判断应用环境
     *
     * @return 生产环境 release 版本 true 其他环境 false
     */
    public static boolean isRelease() {
        if (API.HOST.equals("http://www.caihonglive.tv:28888/") && !BuildConfig.DEBUG) {
            return true;
        }
        return false;
    }

    public static boolean isTest() {
        return API.HOST.equals("http://118.190.21.195:28888/");
    }

    public static boolean isJumpFromLive = false;


}
